<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/banner/banner.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>运营商</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>公众号轮播图</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';

    var Tenant_WxBanner_update = false;
    var Tenant_WxBanner_delete = false;
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <shiro:hasPermission name="Tenant_WxBanner_add">
                        <div class="pull-left search col-md-3">
                            <button type="button" class="btn  btn-primary" onclick="banner.addBanner()">
                                增加轮播图
                            </button>
                        </div>
                    </shiro:hasPermission>
                </div>

                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>

<shiro:hasPermission name="Tenant_WxBanner_update">
    <script>
        Tenant_WxBanner_update = true;
    </script>
</shiro:hasPermission>
<shiro:hasPermission name="Tenant_WxBanner_delete">
    <script>
        Tenant_WxBanner_delete = true;
    </script>
</shiro:hasPermission>
<script type="text/javascript">
    banner.init();
</script>
</body>
</html>